3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to manage a renderer's features.
You can use the Q3Renderer_HasModalConfigure function to determine whether a renderer can display a modal settings dialog box.
TQ3Boolean Q3Renderer_HasModalConfigure (TQ3RendererObject renderer);
You can use the Q3Renderer_ModalConfigure function to pop up a modal dialog box used to configure the renderer's settings.
TQ3Status Q3Renderer_ModalConfigure (
TQ3RendererObject renderer,
TQ3DialogAnchor dialogAnchor,
TQ3Boolean *canceled);
The Q3Renderer_ModalConfigure function displays a modal settings dialog box to configure the settings for the renderer specified by the renderer parameter. The canceled parameter is a Boolean that returns kQ3True if the request has been canceled, kQ3False otherwise.
The Q3Renderer_ModalConfigure function returns kQ3Failure if an error occurred.
An application can use the Q3Renderer_GetConfigurationData function to access private renderer configuration data, which it can then save in a preference file or style template. The application should tag this data with the renderer's object name.
TQ3Status Q3Renderer_GetConfigurationData (
TQ3RendererObject renderer,
unsigned char *dataBuffer,
unsigned long bufferSize,
unsigned long *actualDataSize);
The Q3Renderer_GetConfigurationData function stores private configuration data for the renderer object designated by renderer in a buffer pointed to by the dataBuffer parameter, and returns in actualDataSize the number of bytes written. If you set dataBuffer to null , Q3Renderer_GetConfigurationData will return in actualDataSize the buffer size required, without writing data out.
You can use the Q3Renderer_SetConfigurationData function to set a renderer to a configuration state previously accessed by Q3Renderer_GetConfigurationData.
TQ3Status Q3Renderer_SetConfigurationData (
TQ3RendererObject renderer,
unsigned char *dataBuffer,
unsigned long bufferSize);
You can use the Q3RendererClass_GetNickNameString function to to get a renderer's name string. The name string can then be used to provide user selections, for example in a menu.
TQ3Status Q3RendererClass_GetNickNameString(
TQ3ObjectType rendererClassType,
TQ3ObjectClassNameString rendererClassString);
The Q3RendererClass_GetNickNameString function returns, in the rendererClassString parameter, the user-identifiable name of a renderer.
The renderer is responsible for storing the name in a localizable format--for example as a resource. If Q3RendererClass_GetNickNameString returns NULL in rendererClassString, then the caller may choose to use the renderer's class name instead. Applications should always try to get the name string before using the class name, because the class name is not localizable.
Previous | QD3D Book | Overview | Chapter Contents | Next |